package com.cskaoyan.controller.admin;

import com.cskaoyan.model.admin.bo.BaseParam;
import com.cskaoyan.model.admin.vo.BaseDataListVo;
import com.cskaoyan.model.admin.vo.BaseRespVo;
import com.cskaoyan.service.admin.AdminLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author hanshuai
 * @version 1.0
 * @description @TODO
 * @date 2021/11/30 13:57
 */
@RestController
@RequestMapping("admin/log")
public class AdminLogController {
    @Autowired
    AdminLogService adminLogService;

    @RequestMapping("list")
    public BaseRespVo logList(BaseParam baseParam,String name){
        BaseDataListVo baseDataListVo = adminLogService.logList(baseParam,name);
        return BaseRespVo.ok(baseDataListVo);
    }
}
